Skip to content

perf(ci): give the Android smoke lane eight runner cores - #4678

Merged
thymikee merged 1 commit into
mainfrom
ci/android-smoke-runner-cores
Nov 18, 2026
Merged

thymikee merged 1 commit into
mainfrom
ci/android-smoke-runner-cores

Conversation

@thymikee

@thymikee thymikee commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

The Android Smoke Tests job ran on blacksmith-4vcpu-ubuntu-2404. The emulator holds two pinned cores (cores: 2) and the harness issues one CLI process per step — 137 steps in the sampled run — so those processes queue for the two cores the emulator does not hold. Every phase inside Run Android smoke checks stretches by the same factor with runner load: at 4 vCPU, emulator boot 27–63 s, smoke:fixture-bootstrap 3.4–18.2 s, whole harness E2E 100–244 s. Eight cores give the emulator and the step processes separate cores.

One runs-on line plus a comment. No scenario, gate, or emulator-flag changes.

Validation

Measured per phase from the run logs (Boot completed in, harness smoke:* report) and the android-artifacts step history, across 13 green 4 vCPU runs and 3 green runs of head 87923a67f4 at 8 vCPU (runs 44280191285 attempts 1–2, 44281678414):

Measure 4 vCPU (n=13) 8 vCPU (n=3)
Job 205–456 s, p50 329 204–223 s, p50 216
Run Android smoke checks 147–360 s, p50 244 143–163 s, p50 152
Emulator boot 27.0–63.2 s 23.5–27.8 s
E2E harness 100–244 s 101.8–117.1 s

At $0.008/min (4 vCPU) and $0.016/min (8 vCPU): job p50 cost $0.044 → $0.058 (+32%) for −34% job wall time. The 8 vCPU spread is 19 s wide against 251 s at 4 vCPU, and every 8 vCPU sample beats the 4 vCPU p50; the lane's worst case halves. Risks: three head samples; the fixture restore (24–35 s, cache hit, source=artifact in all samples) and the replay stay as they were.

🤖 Generated with Claude Code

Every phase inside "Run Android smoke checks" stretches by the same factor
with runner load: emulator boot 27-63 s, fixture install 3.4-18.2 s, and each
smoke scenario, across green runs at 4 vCPU. The emulator holds two pinned
cores and the harness issues one CLI process per step, so the step processes
queue for the two remaining cores. Eight cores give the emulator and the step
processes separate cores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.40 MB 6.39 MB -5.6 kB
Package (unpacked) 6.40 MB 6.39 MB -5.6 kB
Package (download) 1.94 MB 1.94 MB -1.9 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 23.8 ms 24.6 ms +0.8 ms
CLI --help 58.0 ms 54.9 ms -3.2 ms

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 87923a6

No open findings.

Reviewed with this repository's own Sentinel configuration (972b5a5a2306).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee thymikee closed this Nov 18, 2026
@thymikee thymikee reopened this Nov 18, 2026
@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 87923a6. I found no problems in the change, and the Android Smoke Tests job passed on the new 8 vCPU runner (3m43s), so the diff overlaps a check that is green. All 30 checks pass or are skipped, there are no open review threads, and there are no conflicts. Not blocking, and you can take or leave these: the speedup rests on 3 samples at 8 vCPU against 13 at 4 vCPU from one time window, so it is worth re-checking the job duration after a few merged main runs, and the comment's "two cores" is the emulator action's default rather than a repo setting, so saying so in the comment or body would keep it from going stale. Nothing else is needed before merge; the cost against saving trade-off is the only call left for the maintainer.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 18, 2026
@thymikee
thymikee merged commit 8a717c0 into main Nov 18, 2026
31 checks passed
@thymikee
thymikee deleted the ci/android-smoke-runner-cores branch November 18, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant